//
//  XSChartViewModel.h
//  Test
//
//  Created by xueshan1 on 2018/12/13.
//  Copyright © 2018 xueshan1. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface XSChartViewModel : NSObject

@property(nonatomic,copy)NSString *name;
@property(nonatomic,strong)UIColor *color;
@property(nonatomic,strong)NSArray<NSString *> *dataSource;
@property(nonatomic,assign)NSInteger maxValue;
@property(nonatomic,strong)NSMutableArray<UIButton *>*plotButtons;

+ (XSChartViewModel *)modelWithName:(NSString *)name color:(UIColor *)color dataSource:(NSArray *)dataSource;


@end

NS_ASSUME_NONNULL_END
